#include<iostream>
#include<vector>
#include<func.h>
using std::cout;
using std::endl;
using std::vector;

//遍历
void visit(vector<int> &stack){
    for(auto &s:stack){
        cout<<s<<endl;
    }
    cout<<endl;
}
//stack 头插法
void push_num(vector<int> &stack,int num){
    stack.insert(stack.begin(),num);
}
//stack 尾删法
void pop_num(vector<int> &stack){
    stack.pop_back();
}

int main(void){
    vector<int>number;
    //头插法
    for(int i = 0;i<10;i++){
        push_num(number,i);
    }
    //visit
    visit(number);
}
